package com.hdsx.restful.ygzt.csgdjtyyzd.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.csgdjtyyzd.bean.Csgdjtyyzd;
import com.hdsx.restful.ygzt.csgdjtyyzd.mapper.CsgdjtyyzdMapper;
import com.hdsx.restful.ygzt.csgdjtyyzd.service.CsgdjtyyzdServer;
/**
 * csgdjtyyzdServer实现类
 *
 */
@Service
public class CsgdjtyyzdServerImpl extends BaseOpearte<Csgdjtyyzd> implements CsgdjtyyzdServer {

	public CsgdjtyyzdServerImpl() {
		super("GIS_CSGDJTYYZD");
	}

	@Resource(name="csgdjtyyzdMapper")
	private CsgdjtyyzdMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String zdmc, String dylxbm) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", zdmc);
		parameter.put("lxbm", dylxbm);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Csgdjtyyzd> queryList(String xzqhbm, String zdmc, String dylxbm,
			int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", zdmc);
		parameter.put("lxbm", dylxbm);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Csgdjtyyzd> lists=mapper.queryList(parameter);
		return lists;
	}
	
	@Override
	public Csgdjtyyzd queryById(String id) {
		return mapper.selectById(id);
	}
	@Override
	public List<String> selectName(String zdmc,String dylxbm,String xzqhbm){
		return mapper.selectName(zdmc,dylxbm,xzqhbm);
	}
	@Override
	public List<String> selectLxbm(String dylxbm,String xzqhbm){
		return mapper.selectLxbm(dylxbm,xzqhbm);
	}
	
}
